package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {


    //分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //菜品回显
    List<Dish> list(Long categoryID,String name);
      //新增套餐
    void save(Setmeal setmeal);
     //修改菜品
    void update(Setmeal setmeal);
     //查询回显
    Setmeal setmealFindByid(long id);
      //状态改变
   void statuSetmeal(Integer status, List<Long> ids) ;
       //按id删除
    void deleByid(List<Long> ids);
    // 套餐列表
    List<Setmeal> findAll(Long categoryId, Integer status);
     //套餐回显
   List<Dish> selectById(Long id);
}
